<%--
  Created by IntelliJ IDEA.
  User: Wake
  Date: 2019/3/29
  Time: 22:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    //返回主机绝对根目录
//    String path = request.getContextPath();
//    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

    //返回主机目录
    pageContext.setAttribute("basePath",request.getContextPath());
%>
<html>
<head>
    <title>Title</title>
</head>


<%--<link rel="stylesheet" type="text/css" href="<%=basePath%>/res/css/bootstrap.min.css">--%>
<%--<script type="text/javascript" src="<%=basePath%>/res/js/jquery-3.3.1.min.js"></script>--%>
<%--<script type="text/javascript" src="<%=basePath%>/res/js/bootstrap.min.js"></script>--%>


<link rel="stylesheet" type="text/css" href="${basePath}/res/css/bootstrap.min.css">
<script type="text/javascript" src="${basePath}/res/js/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="${basePath}/res/js/bootstrap.min.js"></script>
<style>
    form{

        margin-left: 8vw;
    }
    h3{
        margin-left: 3.5vw;
        margin-top: 12vh;
    }
    .form-control:focus{
        box-shadow: none;
    }
    .btn{
        margin-top: 2vh;

    }
    #a{
        color: #007bff;
    }

</style>
<body>

<div class="container col-5">
    <h3 align="center">登录</h3>
<form  class="form-group col-8" action="login.action" method="post">
    <lable>用户名：</lable>
    <input class="form-control" type="text" name="user.username">
    <lable>密码：</lable>
    <input class="form-control" type="text" name="user.password">
    <button class="btn btn-primary col" type="submit">登录</button>
    <button id="a" class="btn col">注册</button>

    </p>
</form>
</div>
</body>
</html>
